public class Test {
    public static boolean fuc(int[] arr) {
        for (int i = 0; i < arr.length-2; i++) {
            if((arr[i] % 2 == 1)&&(arr[i+1] % 2 == 1)&&(arr[i+2] % 2 == 1)){
                return true;
            }
        }
        return false;
    }
    public static void main(String[] args) {
        int[] arr = {1,2,3,4,5,6,7,9,9};
        System.out.println(fuc(arr));

    }

}
